use std::panic::set_hook;

#[test]
fn test_set_hook(){
    set_hook(Box::new(|panic_info| {
        eprintln!("====== ERR: {}", panic_info.payload().downcast_ref::<&str>().unwrap());
    }));
 
    panic!("crash and burn");
}
